package com.java.shop.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.java.common.utils.PageUtils;
import com.java.shop.order.entity.OrderEntity;
import com.java.shop.order.vo.*;

import java.util.Map;
import java.util.concurrent.ExecutionException;

/**
 * 订单
 *
 * @author cxq
 * @email 137512476@qq.com
 * @date 2021-04-22 18:20:34
 */
public interface OrderService extends IService<OrderEntity> {

    PageUtils queryPage(Map<String, Object> params);

    OrderConfirmVo getConfirmInfo() throws ExecutionException, InterruptedException;

    OrderSubmitRespVo submitOrder(OrderSubmitVo vo) throws Exception;

    OrderEntity getInfoByOrderSn(String orderSn);

    void orderClose(OrderEntity orderEntity) throws Exception;

    PayOrderVo getPayOrder(String orderSn);

    PageUtils queryPageWithItem(Map<String, Object> params);

    String handlePayResult(PayAsyncVo vo) throws Exception;
}

